package com.zbkj.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CommunitySettingSettlementVo对象", description="社区结算配置VO对象")
public class CommunitySettingSettlementVo implements Serializable {

    @ApiModelProperty(value = "种草返佣比例", required = true)
    @NotNull(message = "种草返佣比例不能为空")
    private Integer communitySettingSettlementRebatePercent;

    @ApiModelProperty(value = "提现最低金额", required = true)
    @NotNull(message = "提现最低金额不能为空")
    private BigDecimal communitySettingSettlementMinimumWithdrawalAmount;

    @ApiModelProperty(value = "冻结规则 1-订单完成后", required = true)
    @NotBlank(message = "冻结规则不能为空")
    private String communitySettingSettlementFreezeType;

    @ApiModelProperty(value = "冻结时长（天）", required = true)
    @NotNull(message = "冻结时长不能为空")
    private Integer communitySettingSettlementFreezeDay;
}
